package com.project.hqshorttaxi.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "B_Login")
public class Login implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 登录账号ID
     */
    @Column(name = "UserId")
    private String userId;

    /**
     * 登录账号姓名
     */
    @Column(name = "UserName")
    private String userName;

    /**
     * 登录密码
     */
    @Column(name = "Password")
    private String password;

    /**
     * 权限ID
     */
    @Column(name = "RoleId")
    private Integer roleId;

    /**
     * Token
     */
    @Column(name = "Token")
    private String token;

    /**
     * IP
     */
    @Column(name = "IP")
    private String ip;

    /**
     * Token过期时间
     */
    @Column(name = "ExpirationDate")
    private Date expirationDate;

    /**
     * 创建时间
     */
    @Column(name = "CreateTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "UpdateTime")
    private Date updateTime;

    /**
     * 删除标识
     */
    @Column(name = "DeleteFlag")
    private Integer deleteFlag;
}
